<?php
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap{
	public function _initAutoload(){
//        if(!isset($_COOKIE['ssgtest'])){
//            header('Location: https://123.30.173.18:'.$_SERVER['SERVER_PORT'].'/bao-tri');
//            exit;
//        }
        $front = Zend_Controller_Front::getInstance();
        $front->registerPlugin(new Zend_Controller_Plugin_ErrorHandler(array(
                                'module'     => 'error',
                                'controller' => 'error',
                                'action'     => 'error'
        )));
        
		$autoloader = new Zend_Application_Module_Autoloader(array( 
					'namespace' => '', 
					'basePath' => dirname(__FILE__), 
				)); 
		return $autoloader; 
    }

//    protected function _initPlugins()
//    {
//        $front = Zend_Controller_Front::getInstance();
//        $front->registerPlugin(new My_Plugin_Module());
//    }
}